﻿using System.ComponentModel.DataAnnotations.Schema;
using System.ComponentModel.DataAnnotations;
using PublicClass;

namespace S.RBAC.Domain.Model
{
    /// <summary>
    /// 角色表
    /// </summary>
    [Table("Role")]
    public class Role : AuditFields
    {
        /// <summary>
        /// 角色Id
        /// </summary>
        [Key]
        public int RoleId { get; set; }

        /// <summary>
        /// 角色名称
        /// </summary>
        [MaxLength(30)]
        public string? RoleName { get; set; }

        /// <summary>
        /// 角色描述
        /// </summary>
        [MaxLength(300)]
        public string? RoleDescribe { get; set; }
    }
}
